package edu.sctu.zhoudie.mouth201505.day20150517.TextOne;

/**
 * Created by user08 on 2015/5/17.
 */
public class ChildOne extends MyAbstruct {
    MyData[] myDatas;
    public ChildOne(MyData[] myDatas) {
        super(myDatas);
        this.myDatas = myDatas;
    }

    @Override
    public MyData[] getSysyTem() {

        MyData[] myDatas1 = new MyData[10];
        for (int i= 0; i <10; i++){
            if (
            myDatas[i].getGrade() > 60)
                myDatas1[i] =  myDatas[i];
            else
                myDatas1[i] = null;
        }



        return  myDatas1;
    }
}
